import chinaProvinces from '@/provinces.js';
function data() {
  return {
    needVisitAgainOptions: ['是', '否'],
    chinaProvinces: chinaProvinces,
    chooseProvinceCities: [],
    chooseCityCounties: [],
    chooseCountyCountries: [],
    ifDialog: false,
    rules: {
      userPhone: [
        { required: true, message: '请输入客户电话', trigger: 'blur' }
      ],
      userName: [
        { required: true, message: '请输入客户姓名', trigger: 'blur' }
      ],
      mainServiceType: [
        { required: true, message: '请选择服务大类', trigger: 'change' }
      ],
      subServiceType: [
        { required: true, message: '请选择服务小类', trigger: 'change' }
      ],
      userRequestServiceStartTime: [
        {
          required: true,
          message: '请选择客户要求服务开始时间',
          trigger: 'blur'
        }
      ],
      userRequestServiceEndTime: [
        {
          required: true,
          message: '请选择客户要求服务结束时间',
          trigger: 'blur'
        }
      ],
      userProvince: [{ required: true, trigger: 'blur' }],
      userCity: [{ required: true, trigger: 'blur' }],
      userCounty: [{ required: true, trigger: 'blur' }],
      userCountry: [{ required: true, trigger: 'blur' }],
      userCommunity: [{ required: true, trigger: 'blur' }],
      orderContent: [
        { required: true, message: '请输入订单内容', trigger: 'blur' }
      ],
      needVisitAgain: [
        { required: true, message: '请选择是否需要回访', trigger: 'blur' }
      ],
      predictServiceStartTime: [
        { required: true, message: '请选择预定服务开始时间', trigger: 'blur' }
      ],
      predictServiceEndTime: [
        { required: true, message: '请选择预定服务结束时间', trigger: 'blur' }
      ]
    },
    form: {
      userPhone: '',
      userName: '',
      mainServiceType: '',
      subServiceType: '',
      userRequestServiceStartTime: '',
      userRequestServiceEndTime: '',
      userProvince: '',
      userCity: '',
      userCounty: '',
      userCountry: '',
      userCommunity: '',
      orderContent: '',
      needVisitAgain: '',
      predictServiceStartTime: '',
      predictServiceEndTime: ''
    }
  };
}

export default data;
